<?php
/* SVN FILE: $Id$ */
/* MgTipoEmpleado Test cases generated on: 2009-07-10 17:07:15 : 1247264895*/
App::import('Model', 'MgTipoEmpleado');

class MgTipoEmpleadoTestCase extends CakeTestCase {
	var $MgTipoEmpleado = null;
	var $fixtures = array('app.mg_tipo_empleado', 'app.mg_empleado');

	function startTest() {
		$this->MgTipoEmpleado =& ClassRegistry::init('MgTipoEmpleado');
	}

	function testMgTipoEmpleadoInstance() {
		$this->assertTrue(is_a($this->MgTipoEmpleado, 'MgTipoEmpleado'));
	}

	function testMgTipoEmpleadoFind() {
		$this->MgTipoEmpleado->recursive = -1;
		$results = $this->MgTipoEmpleado->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgTipoEmpleado' => array(
			'id'  => 1,
			'descripcion'  => 'Lorem ipsum dolor ',
			'created'  => '2009-07-10',
			'modified'  => '2009-07-10',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>